﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Web.Filters;

namespace Web
{
    /// <summary>
    /// 表示用户已登录的控制器
    /// </summary>
    [Login]
    public class LoginedController : BasicController
    {
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            ViewBag.UserName = this.LoginUser.Name;
        }
    }
}